package cn.fan.redis;

import cn.fan.constants.RedisConstants;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

@Component
public class JWTRedis {

    @Cacheable(value = RedisConstants.JWT_CACHE_KEY,key = "#userId")
    public String getAccess_token(String userId){
        return null;
    }

    @Cacheable(value = RedisConstants.JWT_CACHE_KEY,key = "#userId")
    public String getRefresh_token(String userId){
        return null;
    }
}
